package org.example.ymcc.feignclient;

import org.example.ymcc.feignclient.fallback.CourseFeignClientFallbackFactory;
import org.example.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-course",fallbackFactory = CourseFeignClientFallbackFactory.class)
public interface CourseFeignClient {
    @GetMapping("/courseUserLearn/record/{loginId}/{courseId}")
    public JsonResult record(@PathVariable("loginId")Long loginId, @PathVariable("courseId")Long courseId);
}
